from ftllibs.items.itemtools import ItemIconData

class Item_3078():
    def __init__(self):
        self.parent=False
        self.Name="Trinity Force"
        self.IconFileName="3078.png"
        self.ID=3078
        self.Stack=0
        self.MaxStack=0
#        self.Built_From=['3086','1051','1042','3057','1027','1052','3044','1028','1036']
        self.Built_From=['3057','3044','3086']
        self.Builds_Into=[]
        self.Tags=['health','damage','attack_speed','spell_damage','mana','movement','critical_strike']
        self.Availability=['summonersrift','twistedtreeline','crystalscar','fieldofjustice']
        self.Costs = 300
        self.Total_Costs = 4070
        self.Description="+30 Attack Damage +30 Ability Power +30% Attack Speed +15% Critical Strike Chance +12% Movement Speed +250 Health +250 Mana  UNIQUE Passive: Your basic attacks have a 25% chance to slow your target's Movement Speed by 35% for 2.5 seconds.  UNIQUE Passive: After using an ability, your next basic attack deals bonus physical damage equal to 150% of your base Attack Damage (2 second cooldown). Does not stack with Sheen or Lich Bane."
        self.RichText_Description=""
        self.StatsDescription="<b>+30</b> Ability Power\n<b>+30</b> Attack Damage"
        self.has_active=False
        self.has_passive=True
        self.IconData=ItemIconData(self.IconFileName)
        self.Custom()

    def UpdateStats(self):
        self.parent.Attack_Damage += 30.0
        self.parent.Ability_Power += 30.0
        self.parent.Attack_Speed_Percentage += 30.0
        # above is %
        self.parent.Critical_Strike_Chance += 15.0
        # above is %
        self.parent.Movement_Speed += 12.0
        # above is %
        self.parent.Health += 250.0
        self.parent.Mana += 250.0
        self.UpdateStats_Custom()


    def Custom(self):
        pass

    def UpdateStats_Custom(self):
        pass

